<?php 

class USER_tables {
	private $error;
	
	public function __construct() {
		$this->error = $GLOBALS['error'];
	}

	public function checkChageTable($hallID) {
		$hallID = (int)$hallID;
		$date = date("Y-m-d H:i:s",time()-25);
		$sql = "SELECT 
				  `օbject_table`.`id`,
				  `օbject_table`.`status`
				FROM
				  `օbject_table` 
				WHERE `օbject_table`.`date_time` > '{$date}' 
				  AND `օbject_table`.`enable` = 1
				  AND `օbject_table`.`object_hall_id` = ".$hallID;
		$db = new DB();
		$res = $db->query($sql,1);
		if( $res === false ) {
			return false;
		}
		return $res;
	}
}




















?>